package com.chehejia.devmng.platform.manager.impl;


import com.chehejia.devmng.platform.manager.AllotLongExcelManager;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.stereotype.Service;

/**
 *  * @Description:
 *  * @author: 王永坤
 *  * @Date: 2018/12/13 16:05
 *  
 */
@Slf4j
@Service
public class AllotLongExcelManagerImpl implements AllotLongExcelManager {


    @Override
    public HSSFWorkbook createExcelTemplate() {

        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sheet = wb.createSheet("sheet1");
        HSSFRow sheetRow = sheet.createRow(0);
        HSSFCell sheetRowCell = sheetRow.createCell(0);
        // 设置单元格值
        sheetRowCell.setCellValue("单元格中的中文");
        return wb;
    }
}
